﻿namespace SPDeploy.Library.Helpers
{
    using System;

    public static class ValueTools
    {
        #region Methods: public

        public static TDest ConvertEnum<TSource, TDest>(TSource sourceEnum)
        {
            return (TDest) Enum.Parse(typeof (TDest), Enum.GetName(typeof (TSource), sourceEnum));
        }

        #endregion
    }
}